package com.pwt.model;

import com.pwt.annotation.Update;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;

/**
 * @author dw
 * @version 1.0.0
 * @date 2021/9/4
 */
@Data
@Schema(description = "监控指标模型")
public class WhatResultModel {

    @Schema(name = "id",description = "全局指标类型id")
    @NotBlank(groups = Update.class,message = "修改时必传！")
    private String id;

    @Schema(name = "name",description = "全局指标类名称")
    @NotBlank(message = "名称不能为空！")
    private String name;

    @Schema(name = "global",description = "1-全局，2-个人")
    @Column(name = "global", nullable = true, length = 64)
    private Integer global;

    @Schema(name = "attributeIds",description = "属性id集合")
    private String attributeIds;

    @Schema(name = "statisticsIds",description = "统计类型名称")
    protected String statisticsIds;
}
